/**
 * bootstrap datatimepicker plugins
 */
(function() {
	'use strick',
	require.config({
		paths: {
			"jquery.chosen": "miwawa/1.0.2/js/jquery/chosen/1.4.2/js/chosen.jquery.min"
		},
		shim: {
			"jquery.chosen": {
				deps : [
				   "jquery", 
				   "css!miwawa/1.0.2/js/jquery/chosen/1.4.2/css/bootstrap-chosen.css"
				],
				exports:"jQuery.fn.chosen"
			}
		}
	});
	
	define(['jquery.chosen'], function(){
		return {
			register:function(elem, options){
				jQuery(elem).chosen(jQuery.extend(true,{},{
					no_results_text: "没有记录!",
					inherit_select_classes: true,
					placeholder_text_single: "请选择一项条目！",
					placeholder_text_multiple: "请选择..."
				},options));
			}
		}
	});
})(this);